-
-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FE: Add Search Functionality to ACLs page #636
base: main
Are you sure you want to change the base?
Conversation
Hi @Haarolean, just following up on my pull request to see if there are any updates or feedback. :) |
Thanks dude! Why not enough? I believe limiting the search to 'principal name' makes sense for the intended use cases, such as quickly verifying whether a specific user is authorized or diagnosing authorization issues tied to a particular principal. Once filtered by principal name, users can further refine results by sorting by operation, for example. We’ve successfully deployed this functionality across hundreds of our clusters, and the feedback from clients has been extremely positive. |
@polegkashti kafka/strimzi admin can already easily check acl by manifests for example. |
I don't mind expanding the search further, but we can do this in a separate issue, after a thorough analysis. @fallen-up would you mind raising a new issue describing the functionality you're interested in? |
@polegkashti thanks for attaching the gif :) |
@Haarolean Thanks for your approval. I appricate your work! |
@@ -36,6 +41,11 @@ const ACList: React.FC = () => { | |||
} = useBoolean(); | |||
const [rowId, setRowId] = React.useState(''); | |||
|
|||
// Set the search params to the url based on the localStorage value | |||
useEffect(() => { | |||
setSearch(searchParams.get('q') || ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please elaborate on what's happening here? I don't quite grasp the relation to local storage here
No breaking changes.
What changes did you make? (Give an overview)
This PR introduces a search functionality in ACLs page that allows users to search by principal name. This feature was developed to improve the debugging process for users managing clusters with numerous ACLs, especially when clients encounter "authorization failed" errors. And in general this feature enables users to quickly locate specific ACL entries, saving time and making the debugging experience more efficient and user friendly.
Is there anything you'd like reviewers to focus on?
No. There are not many changes :)
How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)
This feature has been tested and deployed on production clustres with many acls and it works great :)
Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)
Check out Contributing and Code of Conduct
A visualization of the new feature:
https://github.com/user-attachments/assets/4b591910-3f4c-401d-9809-fcf9b0b129a0
A picture of a cute animal (not mandatory but encouraged)